<template>
    <el-input v-model="c"
              :required="required"
              type="textarea"
              rows="5"/>
</template>

<script>
export default {
    name: 'KTextarea',
    props: {
        value: [String, Number, Array],
        defaultValue: [String, Number, Array],
        required: Boolean,
    },
    computed: {
        c: {
            get() {
                return this.value;
            },
            set(val) {
                this.$emit('input', val);
            }
        }
    }
}
</script>
